# base image
FROM centos:7.6.1810

# MAINTAINER
LABEL Author="yanjingtu<yanjingtu2008@yeah.net>"

ENV  TIME_ZONE Asia/Shanghai

# add files
ADD CentOS-Base.repo /etc/yum.repos.d/CentOS-Base.repo

# timezone
RUN echo "${TIME_ZONE}" > /etc/timezone \
&& ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime

# run command
RUN sed -i 's/enabled=1/enabled=0/g' /etc/yum/pluginconf.d/fastestmirror.conf

# volumes
VOLUME ["/mnt"]

# main command
CMD ["/bin/bash"]

